﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000DDB RID: 3547
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RecallPetScRsp : IMessage<RecallPetScRsp>, IMessage, IEquatable<RecallPetScRsp>, IDeepCloneable<RecallPetScRsp>, IBufferMessage
	{
		// Token: 0x17002CFE RID: 11518
		// (get) Token: 0x06009F15 RID: 40725 RVA: 0x001A940D File Offset: 0x001A760D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RecallPetScRsp> Parser
		{
			get
			{
				return RecallPetScRsp._parser;
			}
		}

		// Token: 0x17002CFF RID: 11519
		// (get) Token: 0x06009F16 RID: 40726 RVA: 0x001A9414 File Offset: 0x001A7614
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RecallPetScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002D00 RID: 11520
		// (get) Token: 0x06009F17 RID: 40727 RVA: 0x001A9426 File Offset: 0x001A7626
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RecallPetScRsp.Descriptor;
			}
		}

		// Token: 0x06009F18 RID: 40728 RVA: 0x001A942D File Offset: 0x001A762D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RecallPetScRsp()
		{
		}

		// Token: 0x06009F19 RID: 40729 RVA: 0x001A9435 File Offset: 0x001A7635
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RecallPetScRsp(RecallPetScRsp other) : this()
		{
			this.curPetId_ = other.curPetId_;
			this.retcode_ = other.retcode_;
			this.selectPetId_ = other.selectPetId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06009F1A RID: 40730 RVA: 0x001A9472 File Offset: 0x001A7672
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RecallPetScRsp Clone()
		{
			return new RecallPetScRsp(this);
		}

		// Token: 0x17002D01 RID: 11521
		// (get) Token: 0x06009F1B RID: 40731 RVA: 0x001A947A File Offset: 0x001A767A
		// (set) Token: 0x06009F1C RID: 40732 RVA: 0x001A9482 File Offset: 0x001A7682
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint CurPetId
		{
			get
			{
				return this.curPetId_;
			}
			set
			{
				this.curPetId_ = value;
			}
		}

		// Token: 0x17002D02 RID: 11522
		// (get) Token: 0x06009F1D RID: 40733 RVA: 0x001A948B File Offset: 0x001A768B
		// (set) Token: 0x06009F1E RID: 40734 RVA: 0x001A9493 File Offset: 0x001A7693
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17002D03 RID: 11523
		// (get) Token: 0x06009F1F RID: 40735 RVA: 0x001A949C File Offset: 0x001A769C
		// (set) Token: 0x06009F20 RID: 40736 RVA: 0x001A94A4 File Offset: 0x001A76A4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint SelectPetId
		{
			get
			{
				return this.selectPetId_;
			}
			set
			{
				this.selectPetId_ = value;
			}
		}

		// Token: 0x06009F21 RID: 40737 RVA: 0x001A94AD File Offset: 0x001A76AD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RecallPetScRsp);
		}

		// Token: 0x06009F22 RID: 40738 RVA: 0x001A94BC File Offset: 0x001A76BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RecallPetScRsp other)
		{
			return other != null && (other == this || (this.CurPetId == other.CurPetId && this.Retcode == other.Retcode && this.SelectPetId == other.SelectPetId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06009F23 RID: 40739 RVA: 0x001A9518 File Offset: 0x001A7718
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.CurPetId != 0U)
			{
				num ^= this.CurPetId.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.SelectPetId != 0U)
			{
				num ^= this.SelectPetId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06009F24 RID: 40740 RVA: 0x001A9589 File Offset: 0x001A7789
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06009F25 RID: 40741 RVA: 0x001A9591 File Offset: 0x001A7791
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06009F26 RID: 40742 RVA: 0x001A959C File Offset: 0x001A779C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.CurPetId != 0U)
			{
				output.WriteRawTag(24);
				output.WriteUInt32(this.CurPetId);
			}
			if (this.SelectPetId != 0U)
			{
				output.WriteRawTag(48);
				output.WriteUInt32(this.SelectPetId);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(120);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06009F27 RID: 40743 RVA: 0x001A9614 File Offset: 0x001A7814
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.CurPetId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.CurPetId);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.SelectPetId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.SelectPetId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06009F28 RID: 40744 RVA: 0x001A9684 File Offset: 0x001A7884
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RecallPetScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.CurPetId != 0U)
			{
				this.CurPetId = other.CurPetId;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.SelectPetId != 0U)
			{
				this.SelectPetId = other.SelectPetId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06009F29 RID: 40745 RVA: 0x001A96E8 File Offset: 0x001A78E8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06009F2A RID: 40746 RVA: 0x001A96F4 File Offset: 0x001A78F4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 24U)
				{
					if (num != 48U)
					{
						if (num != 120U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.Retcode = input.ReadUInt32();
						}
					}
					else
					{
						this.SelectPetId = input.ReadUInt32();
					}
				}
				else
				{
					this.CurPetId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04003D5B RID: 15707
		private static readonly MessageParser<RecallPetScRsp> _parser = new MessageParser<RecallPetScRsp>(() => new RecallPetScRsp());

		// Token: 0x04003D5C RID: 15708
		private UnknownFieldSet _unknownFields;

		// Token: 0x04003D5D RID: 15709
		public const int CurPetIdFieldNumber = 3;

		// Token: 0x04003D5E RID: 15710
		private uint curPetId_;

		// Token: 0x04003D5F RID: 15711
		public const int RetcodeFieldNumber = 15;

		// Token: 0x04003D60 RID: 15712
		private uint retcode_;

		// Token: 0x04003D61 RID: 15713
		public const int SelectPetIdFieldNumber = 6;

		// Token: 0x04003D62 RID: 15714
		private uint selectPetId_;
	}
}
